x86/KEXEC: disable hpet legacy broadcasts earlier
authorAndrew Cooper <andrew.cooper3@citrix.com>
Fri, 19 Aug 2011 08:58:22 +0000 (09:58 +0100)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Fri, 19 Aug 2011 08:58:22 +0000 (09:58 +0100)
commitb5a0e71dd79e976796098f415e30dfcb276de9f8
treecfa0cfb876be7f477549fdebaeaa3857337de515
parentb57bd6d2732468362c1dd3be0b26ccf5f4afbf0d
x86/KEXEC: disable hpet legacy broadcasts earlier

On x2apic machines which booted in xapic mode,
hpet_disable_legacy_broadcast() sends an event check IPI to all online
processors.  This leads to a protection fault as the genapic blindly
pokes x2apic MSRs while the local apic is in xapic mode.

One option is to change genapic when we shut down the local apic, but
there are still problems with trying to IPI processors in the online
processor map which are actually sitting in NMI loops

Another option is to have each CPU take itself out of the online CPU
map during the NMI shootdown.

Realistically however, disabling hpet legacy broadcasts earlier in the
kexec path is the easiest fix to the problem.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
xen/arch/x86/crash.c
xen/arch/x86/machine_kexec.c